<%-- 
    Document   : admin_home.jsp
    Created on : Jan 24, 2013, 1:58:23 AM
    Author     : ritu
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%
        String sr=null;
    if(session.getAttribute("sr")==null){
        response.sendRedirect("index.jsp?msg=Please,Login First");
      //  out.print("<script type='text/javascript'>alert('asfa');</script>");
    }
    else
        sr=session.getAttribute("sr").toString();
%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Admin Home Page</title>
<link rel="stylesheet" type="text/css" href="css/theme.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script>
   var StyleFile = "theme" + document.cookie.charAt(6) + ".css";
   document.writeln('<link rel="stylesheet" type="text/css" href="css/' + StyleFile + '">');
</script>
<link rel="stylesheet" href="js/jquery-ui-1.8.23.custom/development-bundle/themes/base/jquery.ui.all.css">
        <script src="js/jquery-ui-1.8.23.custom/js/jquery-1.7.2.min.js" type="text/javascript"></script> 
        <script src="js/jquery-ui-1.8.23.custom/development-bundle/ui/jquery.ui.core.js"></script>
	<script src="js/jquery-ui-1.8.23.custom/development-bundle/ui/jquery.ui.widget.js"></script>
	<script src="js/jquery-ui-1.8.23.custom/development-bundle/ui/jquery.ui.accordion.js"></script>
        <script type="text/javascript" src="js/highstock.js"></script>
        <script type="text/javascript" src="js/exporting.js" ></script>
        
         
        <script>
    $(function() {
		$( "#sidebar" ).accordion({
			autoHeight:false,
                        event: "mouseover"
		});
	});
    
</script>
        <script>
    $(function() {
	$.getJSON('sensex.jsp', function(data) {
                
		// Create the chart
		window.chart = new Highcharts.StockChart({
			chart : {
				renderTo : 'bse'
			},

			rangeSelector : {
				selected : 1
			},

			title : {
				text : 'SENSEX Price'
			},

			series : [{
				name : 'SENSEX Price',
				data : data,
				type : 'area',
				threshold : null,
				tooltip : {
					valueDecimals : 2
				},
				fillColor : {
					linearGradient : {
						x1: 0, 
						y1: 0, 
						x2: 0, 
						y2: 1
					},
					stops : [[0, Highcharts.getOptions().colors[0]], [1, 'rgba(0,0,0,0)']]
				}
			}]
		});
	});
});

$(function() {
	$.getJSON('nifty.jsp', function(data) {

		// Create the chart
		window.chart = new Highcharts.StockChart({
			chart : {
				renderTo : 'nse'
			},

			rangeSelector : {
				selected : 1
			},

			title : {
				text : 'NIFTY Price'
			},

			series : [{
				name : 'NIFTY Price',
				data : data,
				type : 'area',
				threshold : null,
				tooltip : {
					valueDecimals : 2
				},
				fillColor : {
					linearGradient : {
						x1: 0, 
						y1: 0, 
						x2: 0, 
						y2: 1
					},
					stops : [[0, Highcharts.getOptions().colors[0]], [1, 'rgba(0,0,0,0)']]
				}
			}]
		});
	});
});

    
    
</script>
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="css/ie-sucks.css" />
<![endif]-->
</head>

<body>
	<div id="container">
    	<div id="header">
        	<h2>Stock Market Website</h2>
    <div id="topmenu">
            	<ul>
                    <li class="current"><a href="admin_home.jsp">Dashboard</a></li>
                    <li><a href="admin_users.jsp">Users</a></li>
                    <li><a href="companies.jsp">Companies</a></li>
                   
                   <!-- <li><a href="charts.jsp">Charts</a></li>
                    <li><a href="chatgroup_admin.jsp">Chat Group</a></li>-->
                   <li><a href="experts_admin.jsp">Experts</a></li>
<!--                    <li><a href="emails.jsp">Emails</a></li>-->
              </ul>
          </div>
      </div>
      <div id="top-panel">
          <div id="panel">
          <form action="" name="quoteform" >
              	<input type="text" placeholder="Enter company symbol" name="sym_nm" id="sym_id" />
                <input type="submit" value="Get Stock Value" />
            </form>
          </div>
      </div>  
        <div id="wrapper">
            <div id="content">
       			
              <div id="infowrap">
              <div id="infobox">
                  <h3>BSE Stock</h3> 
                  <p id="bse"></p>
                  </div>
                  <div id="infobox" class="margin-left">
                    <h3>NSE Stock</h3> 
                    <p id="nse"></p>
                  </div>
            <div id="infobox">
                    <h3>Top 5 Traded</h3>
                    <table>
						<thead>
							<tr>
                            	<th>Company</th>
                                <th>Price</th>
                                <th>Change</th>
                                <th>Change(%)</th>
                            </tr>
						</thead>
						<tbody>
							<tr>
                            	<td><a href="#">Jennifer Kyrnin</a></td>
                                <td>1</td>
                                <td>14.95 €</td>
                                <td>1%</td>
                            </tr>
							<tr>
                            	<td><a href="#">Mark Kyrnin</a></td>
                            	<td>2</td>
                                <td>34.27 €</td>
                                <td>1%</td>
                            </tr>
							<tr>
                            	<td><a href="#">Virgílio Cezar</a></td>
                                <td>2</td>
                                <td>61.39 €</td>
                                <td>1%</td>
                            </tr>
							<tr>
                            	<td><a href="#">Todd Simonides</a></td>
                                <td>5</td>
                                <td>1472.56 €</td>
                                <td>1%</td>
                            </tr>
                            <tr>
                            	<td><a href="#">Carol Elihu</a></td>
                                <td>1</td>
                                <td>9.95 €</td>
                                <td>1%</td>
                            </tr>
						</tbody>
					</table>            
                  </div>
                  <div id="infobox" class="margin-left">
                    <h3>Last 5 Reviews</h3> 
                    <table>
						<thead>
							<tr>
                            	<th>Reviewer</th>
                                <th>Product</th>
                                <th>Action</th>
                            </tr>
						</thead>
						<tbody>
							<tr>
                            	<td><a href="#">Jennifer Kyrnin</a></td>
                                <td><a href="#">Apple iPhone 3G 8GB</a></td>
                                <td><a href="#"><img src="img/icons/page_white_link.png" /></a><a href="#"><img src="img/icons/page_white_edit.png" /></a><a href="#"><img src="img/icons/page_white_delete.png" /></a></td>
                            </tr>
							<tr>
                            	<td><a href="#">Mark Kyrnin</a></td>
                            	<td><a href="#">Prenosnik HP 530 1,6GHz</a></td>
                                <td><a href="#"><img src="img/icons/page_white_link.png" /></a><a href="#"><img src="img/icons/page_white_edit.png" /></a><a href="#"><img src="img/icons/page_white_delete.png" /></a></td>
                            </tr>
							<tr>
                            	<td><a href="#">Virgílio Cezar</a></td>
                                <td><a href="#">Fuji FinePix S5800</a></td>
                                <td><a href="#"><img src="img/icons/page_white_link.png" /></a><a href="#"><img src="img/icons/page_white_edit.png" /></a><a href="#"><img src="img/icons/page_white_delete.png" /></a></td>
                            </tr>
							<tr>
                            	<td><a href="#">Todd Simonides</a></td>
                                <td><a href="#">Canon PIXMA MP140</a></td>
                                <td><a href="#"><img src="img/icons/page_white_link.png" /></a><a href="#"><img src="img/icons/page_white_edit.png" /></a><a href="#"><img src="img/icons/page_white_delete.png" /></a></td>
                            </tr>
                            <tr>
                            	<td><a href="#">Carol Elihu</a></td>
                                <td><a href="#">Prenosnik HP 530 1,6GHz</a></td>
                                <td><a href="#"><img src="img/icons/page_white_link.png" /></a><a href="#"><img src="img/icons/page_white_edit.png" /></a><a href="#"><img src="img/icons/page_white_delete.png" /></a></td>
                            </tr>
						</tbody>
					</table>
                  </div>
                  <div id="infobox">
                    <h3>Top  5 Gainers</h3>
                    <table>
						<thead>
							<tr>
                            	<th>Company</th>
                                <th>Price</th>
                                <th>Change</th>
                                <th>Change(%)</th>
                            </tr>
						</thead>
						<tbody>
							<tr>
                            	<td><a href="#">Jennifer Kyrnin</a></td>
                                <td>1</td>
                                <td>14.95 €</td>
                                <td>1%</td>
                            </tr>
							<tr>
                            	<td><a href="#">Mark Kyrnin</a></td>
                            	<td>14.97€</td>
                                <td>34.27 €</td>
                                <td>1%</td>
                            </tr>
							<tr>
                            	<td><a href="#">Virgílio Cezar</a></td>
                                <td>15.31€</td>
                                <td>61.39 €</td>
                                <td>1%</td>
                            </tr>
							<tr>
                            	<td><a href="#">Todd Simonides</a></td>
                                <td>502.61€</td>
                                <td>1472.56 €</td>
                                <td>1%</td>
                            </tr>
                            <tr>
                            	<td><a href="#">Carol Elihu</a></td>
                                <td>5.1€</td>
                                <td>9.95 €</td>
                                <td>1%</td>
                            </tr>
						</tbody>
					</table>                 
                  </div>
                  <div id="infobox" class="margin-left">
                    <h3>Top 5 Losers</h3> 
                    <table>
						<thead>
							<tr>
                            	<th>Company</th>
                                <th>Price</th>
                                <th>Change</th>
                                <th>Change(%)</th>
                            </tr>
						</thead>
						<tbody>
							<tr>
                            	<td><a href="#">Apple iPhone 3G 8GB</a></td>
                                <td>199.00 €</td>
                                <td>24</td>
                                <td>1%</td>
                            </tr>
							<tr>
                            	<td><a href="#">Fuji FinePix S5800</a></td>
                            	<td>365.24 €</td>
                                <td>19</td>
                                <td>1%</td>
                            </tr>
							<tr>
                            	<td><a href="#">Canon PIXMA MP140</a></td>
                                <td>59.50 €</td>
                                <td>12</td>
                                <td>1%</td>
                            </tr>
							<tr>
                            	<td><a href="#">Apple iPhone 3G 16GB</a></td>
                                <td>199.00 €</td>
                                <td>10</td>
                                <td>1%</td>
                            </tr>
                            <tr>
                            	<td><a href="#">Prenosnik HP 530 1,6GHz</a></td>
                                <td>499.00 €</td>
                                <td>6</td>
                                <td>1%</td>
                            </tr>
						</tbody>
					</table>
                  </div>
              </div>
            </div>
                      
            

        <div id="sidebar">
  	
                	<li><h3><a href="#" class="house">Dashboard</a></h3>
                        <ul>
                        	<li><a href="logout.jsp" class="report">Logout</a></li>
                        </ul>
                    </li>
                   <li><h3><a href="#" class="manage">Manage</a></h3>
          				<ul>
                            <li><a href="earnings.jsp" class="promotions">Earnings</a></li>                
                        </ul>
                    </li>
				       
          </div>
      </div>
        <div id="footer">
        <div id="styleswitcher">
            <ul>
                <li><a href="javascript: document.cookie='theme='; window.location.reload();" title="Default" id="defswitch">d</a></li>
                <li><a href="javascript: document.cookie='theme=1'; window.location.reload();" title="Blue" id="blueswitch">b</a></li>
                <li><a href="javascript: document.cookie='theme=2'; window.location.reload();" title="Green" id="greenswitch">g</a></li>
                <li><a href="javascript: document.cookie='theme=3'; window.location.reload();" title="Brown" id="brownswitch">b</a></li>
                <li><a href="javascript: document.cookie='theme=4'; window.location.reload();" title="Mix" id="mixswitch">m</a></li>
                <li><a href="javascript: document.cookie='theme=5'; window.location.reload();" title="Mix" id="defswitch">m</a></li>
            </ul>
        </div><br />

        </div>
</div>
</body>
</html>

            
            